package com.neusoft.ch6.hw.test04;

public class Student {
	// 属性
	// 姓名
	private String stuName;
	// 学号
	private String stuNo;
	// 成绩
	private int stuScore;

	// 行为
	// 输出学生信息
	public void printStudentInfo() {
		System.out.println("姓名：" + stuName + "，学号：" + stuNo + "，成绩：" + stuScore);
	}

	public Student(String stuName, String stuNo, int stuScore) {
		super();
		this.stuName = stuName;
		this.stuNo = stuNo;
		this.stuScore = stuScore;
	}

	public String getStuName() {
		return stuName;
	}

	public void setStuName(String stuName) {
		this.stuName = stuName;
	}

	public String getStuNo() {
		return stuNo;
	}

	public void setStuNo(String stuNo) {
		this.stuNo = stuNo;
	}

	public int getStuScore() {
		return stuScore;
	}

	public void setStuScore(int stuScore) {
		this.stuScore = stuScore;
	}

	@Override
	public String toString() {
		return "Student [stuName=" + stuName + ", stuNo=" + stuNo + ", stuScore=" + stuScore + "]";
	}

	
}
